package com.songlanyun.modules.integralrecord.dao;

import com.songlanyun.modules.integralrecord.entity.IntegralRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * 会员积分的收支记录
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-02-25 15:52:20
 */
@Mapper
public interface IntegralRecordDao extends BaseMapper<IntegralRecord> {

    BigDecimal sum(Long userId, Integer mode, Integer modelType);

}
